//
//  CWShortVideoCollectionViewFlowLayout.swift
//  SwiftTest
//
//  Created by 陈旺 on 2022/1/25.
//

import UIKit

/// 约束
class CWShortVideoCollectionViewFlowLayout: UICollectionViewFlowLayout {
    override func prepare() {
        scrollDirection = .vertical
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        if let size = collectionView?.size {
            itemSize = size
        }
        super.prepare()
    }
}
